package com.tueye.entity.user;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tueye.entity.BaseEntity;
import com.tueye.entity.Topics;

/**
 * 用户收藏作品表
 * @author yue
 *  
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_usercollect_info")
public class UserCollectionInfo extends BaseEntity {
	
	private User user;
	private Topics topics;
	/*1为发布关系 2为收藏关系*/
	private Integer userTopicType;
	
	@ManyToOne
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	} 
	public Integer getUserTopicType() {
		return userTopicType;
	}
	public void setUserTopicType(Integer userTopicType) {
		this.userTopicType = userTopicType;
	}
	@ManyToOne
	public Topics getTopics() {
		return topics;
	}
	public void setTopics(Topics topics) {
		this.topics = topics;
	}
	
	 
}
